package MyPackage;

import java.util.Scanner;

public class CodeTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = 0;
        int a = 5;

        //此处关键字命名已修改
        long b = 20L;

        int n = sc.nextInt();
        int [] arr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            arr[i] = sc.nextInt();
        }

        //排序
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length - i - 1; j++) {
                if(arr[j] > arr[j+1]){
                    int t = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = t;
                }
            }
        }

        //此处if大括号已添加
        if(a+b>3) {
            System.out.println("yes");
        }

        //此处for大括号已添加
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }

    }
}
